package com.caval.service;

import com.caval.bean.Warehouse;

import javax.servlet.http.HttpSession;
import java.util.List;
import java.util.Map;

public interface WarehouseService {

    List<Warehouse> getWarehouse(int user_id);

    String doPurchase(int user_id,int game_id);

    String gameExist(int user_id,int game_id);

    boolean gameExist(Map<String,Object> map);

    double getPrice(int game_id);

    double getFunds(int user_id);

    //退款-从仓库中删除
    String doRefund(int user_id,int game_id);

    String doRecharge(int user_id, int amount);
}
